<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const obj = {
            name:'xiaoming',
            age:'18',
            hobby:['ball','swimming','skating']
        }
        console.log(Object.keys(obj));
        console.log(Object.values(obj));
        console.log(Object.entries(obj))
        const m = new Map(Object.entries(obj))
        console.log(m)
        console.log(Object.getOwnPropertyDescriptors(obj))
        //进行深层次的拷贝
        const r = Object.create(null,
        {
            name:{
                configurable:true,
                enumerable:true,
                value:'jjj'
            }
        })
        console.log(Object.getOwnPropertyDescriptors(r))
    </script>
</body>
</html>

